package sury.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 管理员
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_yb_admin")
public class AdminEntity implements Serializable {
    private static final long serialVersionUID = -6206753728604241381L;

    /**
     * 管理员id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;


    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 电子邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    //todo:more admin entity information andtb_yb_admin information
//    private String sex;
//
//    private LocalDateTime createTime;
//
//    private LocalDateTime updateTime;
//
//    private Long createUser;
//
//    private Long updateUser;
}
